<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title></title>
    <%@ include file="/WEB-INF/include/commoncss.jsp"%>
    <script type="text/javascript"
            src="${ctx}/javascript/laydate/laydate.js"></script>
</head>
<body>
<article class="page-container">
    <div action="" class="form form-horizontal" id="scheduleAdd">
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2"><span
                    class="c-red">*</span>中文国名：</label>
            <div class="formControls col-xs-8 col-sm-3">
                <input id="nation_z" name="nation_z" value="${development.nation_z}" class="input-text" disabled/>
            </div>
            <label class="form-label col-xs-4 col-sm-2"><span
                    class="c-red">*</span>货币名称：</label>
            <div class="formControls col-xs-8 col-sm-3">
                <input type="text" name="currency" id="currency" class="input-text" value="${development.currency}"/>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">统计报表：</label>
            <div class="formControls col-xs-8 col-sm-3">
                <input placeholder="用逗号隔开" type="text" name="statistics" id="statistics" class="input-text" value="${development.statistics}"/>
            </div>
            <label class="form-label col-xs-4 col-sm-2">相关文献：</label>
            <div class="formControls col-xs-8 col-sm-3">
                <input placeholder="用逗号隔开" type="text" name="conferences" id="conferences" class="input-text" value="${development.conferences}"/>
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">经济简况：</label>
            <div class="formControls col-xs-8 col-sm-3">
                <textarea id="economy" name="economy" cols="130" rows="5">${development.economy}</textarea>
            </div>

        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">工业简况：</label>
            <div class="formControls col-xs-8 col-sm-3">
                <textarea id="industry" name="industry" cols="130" rows="5" value="" >${development.industry}</textarea>
            </div>

        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">农业简况：</label>
            <div class="formControls col-xs-8 col-sm-3">
                <textarea id="agriculture" name="agriculture" cols="130" rows="5" value="" >${development.agriculture}</textarea>
            </div>

        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">服务业：</label>
            <div class="formControls col-xs-8 col-sm-3">
                <textarea id="service_industry" name="service_industry" cols="130" rows="5" value="" >${development.service_industry}</textarea>
            </div>

        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">旅游业：</label>
            <div class="formControls col-xs-8 col-sm-3">
                <textarea id="tourism" name="tourism" cols="130" rows="5" value="" >${development.tourism}</textarea>
            </div>

        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">新兴产业：</label>
            <div class="formControls col-xs-8 col-sm-3">
                <textarea id="hi_tech_industry" name="hi_tech_industry" cols="130" rows="5" value="" >${development.hi_tech_industry}</textarea>
            </div>

        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">交通运输：</label>
            <div class="formControls col-xs-8 col-sm-3">
                <textarea id="traffic_transportation" name="traffic_transportation" cols="130" rows="5" value="" >${development.traffic_transportation}</textarea>
            </div>

        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">对外贸易：</label>
            <div class="formControls col-xs-8 col-sm-3">
                <textarea id="external_trade" name="external_trade" cols="130" rows="5" value="" >${development.external_trade}</textarea>
            </div>

        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">财政金融：</label>
            <div class="formControls col-xs-8 col-sm-3">
                <textarea id="finance_monetary" name="finance_monetary" cols="130" rows="5" value="" >${development.finance_monetary}</textarea>
            </div>

        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">对外投资：</label>
            <div class="formControls col-xs-8 col-sm-3">
                <textarea id="inverstment_abroad" name="inverstment_abroad" cols="130" rows="5" value="" >${development.inverstment_abroad}</textarea>
            </div>

        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">对外援助：</label>
            <div class="formControls col-xs-8 col-sm-3">
                <textarea id="foreign_aid" name="foreign_aid" cols="130" rows="5" value="" >${development.foreign_aid}</textarea>
            </div>

        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">国际援助：</label>
            <div class="formControls col-xs-8 col-sm-3">
                <textarea id="international_aid" name="international_aid" cols="130" rows="5" value="" >${development.international_aid}</textarea>
            </div>

        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">主要大公司：</label>
            <div class="formControls col-xs-8 col-sm-3">
                <textarea id="top_company" name="top_company" cols="130" rows="5" value="" >${development.top_company}</textarea>
            </div>

        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">主要经济团体：</label>
            <div class="formControls col-xs-8 col-sm-3">
                <textarea id="economic_organization" name="economic_organization" cols="130" rows="5" value="" >${development.economic_organization}</textarea>
            </div>

        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">
                <span class="c-red">*</span>来源：</label>
            <div class="formControls col-xs-8 col-sm-3">
                <textarea id="reference" name="reference" cols="130" rows="5" value="" >${development.reference}</textarea>
            </div>

        </div>
        <div class="row cl">
            <div class="col-xs-8  col-xs-offset-5 ">
                <button value="${development.country_code}" type="button" class="btn btn-success radius" onClick="update_politic(this.value)">提交</button>
                &nbsp;&nbsp;&nbsp;&nbsp;
                <button id="close" value="${decelopment.recoder_id}" onClick="layer_close();" class="btn btn-default radius" type="button"> 关闭</button>
            </div>
        </div>
    </div>
    <%@ include file="/WEB-INF/include/commonjs.jsp"%>
    <script>
        function update_politic(value){
            var recorder=document.getElementById("close").value;
            var YHZH=parent.parent.document.getElementById("YHZH").innerText;
            if(YHZH.substring(0,3)!='001'&&YHZH.substring(0,3)!=recorder){
                layer.msg("你不能修改不是别人的内容只能查看",{icon:2,time:2000});
                return;
            }
            var conferences=document.getElementById("conferences").value;
            var statistics=document.getElementById("statistics").value;
            var currency=document.getElementById("currency").value;
            var economy=document.getElementById("economy").value;
            var industry=document.getElementById("industry").value;
            var agriculture=document.getElementById("agriculture").value;
            var service_industry=document.getElementById("service_industry").value;
            var tourism=document.getElementById("tourism").value;
            var hi_tech_industry=document.getElementById("hi_tech_industry").value;
            var traffic_transportation=document.getElementById("traffic_transportation").value;
            var external_trade=document.getElementById("external_trade").value;
            var finance_monetary=document.getElementById("finance_monetary").value;
            var inverstment_abroad=document.getElementById("inverstment_abroad").value;
            var foreign_aid=document.getElementById("foreign_aid").value;
            var international_aid=document.getElementById("international_aid").value;
            var top_company=document.getElementById("top_company").value;
            var economic_organization=document.getElementById("economic_organization").value;;

            var reference=document.getElementById("reference").value;
            if(reference==null||reference==""||currency==null||currency==""){
                layer.msg("*为必填项",{icon:2,time:2000});
                return;
            }
            layer.confirm("确认提交吗",{btn:['确定','取消']},function(){

                var url="${ctx}/Development/development_update.do";
                var parameter={conferences:conferences,statistics:statistics,currency:currency,economy:economy,industry:industry,agriculture:agriculture
                    ,service_industry:service_industry,tourism:tourism,country_code:value,hi_tech_industry:hi_tech_industry
                    ,reference:reference ,traffic_transportation:traffic_transportation,external_trade:external_trade,
                    finance_monetary:finance_monetary,inverstment_abroad:inverstment_abroad,foreign_aid:foreign_aid,international_aid:international_aid
                    ,top_company:top_company,economic_organization:economic_organization};
                $.post(url,parameter,function(data){
                    if(data=="修改成功"){
                        layer.msg(data,{icon:1,time:2000},function(){
                            parent.location.reload(true);
                        })
                    }else{
                        layer.msg(data,{icon:2,time:2000});
                    }
                })
            })
        }

    </script>
</article>


</body>

</html>